#include "hero.h"

Hero::Hero()
{
    hero.load(":/pictures/hero.png");

    h_x = 0;
    h_y = 350;

    h_Rect.setWidth(hero.width());
    h_Rect.setHeight(hero.height());
    h_Rect.moveTo(h_x,h_y);
}

void Hero::setPosition(int x, int y)
{
    h_x = x;
    h_y = y;
    h_Rect.moveTo(h_x,h_y);
}
